package com.gulimall.order.feign;

import com.common.to.WareLockTo;
import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author Rookie-6688
 * @Description
 * @Create 2021-04-28 11:04
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {

    @PostMapping("/ware/waresku/stockMap")
    R getStockMap(@RequestBody List<Long> skuIdList);

    @PostMapping("/ware/waresku/sku/lockStock")
    R lockStock(@RequestBody WareLockTo wareLockTo);
}
